package com.fyy.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.fyy.dao.IUserDao;
import com.fyy.model.User;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import javax.annotation.Resource;

/**
 * @Author fyy
 * @Description
 * @Date 2020/7/22 10:53
 */
@Service(interfaceClass = IUserService.class)
public class UserService implements IUserService  {

    @Resource
    private IUserDao userDao;

    public PageInfo<User> queryUserAll() {
        System.out.println("我被消费了");
        PageHelper.startPage(1,2);
        PageInfo<User> users = new PageInfo<User>(userDao.queryUserAll());
        return users;
    }
}
